<?php

abstract class Acl_Users_UsersAbstract 
	implements Acl_Mysql_MysqlInterface
{
	
	protected $db;
	protected $data;
	protected $privateKey;

	
	function __construct($database)
	{
		$this->ConnectMysql($database);
		$this->data=array(
				'name'=>'',
				'email'=>'',
				'phone'=>'',
				'address'=>'',
				'city'=>'Santiago',
				'postalcode'=>'15000',
				'gender'=>'',
				'description'=>'',
				'provinces_id'=>'1',
				'likes'=>array(),
				'languages'=>array()
			);	
	}
	
	protected function setPrivateKey()
	{
		require_once ($_SERVER['DOCUMENT_ROOT'].'/../application/configs/settings.php');
		$this->privateKey=$privateKey;
	}
	
	function ConnectMysql($database)
	{
		$this->db=Acl_Mysql_Connect::getInstance($database);
	}
	
	public function getUsers()
	{
		$sql="SELECT * FROM users";		
		return $this->db->fetchArray($sql); 		
	}
	
	abstract public function getUser($id);
	abstract public function insertUser($data, $file);
	abstract public function updateUser($data, $file);
	abstract public function deleteUser($data);

}
